layuiReady (function() {


    $(document).unbind("keypress");
    $(document).bind("keypress", function(e){
        if(e.which == 13){
            //login();
            companyLogin();
            return false;
        }
    });

    $("#changeValidateImageListener").bind("click", function(){
        $(this).attr("src", "/com/validateImage?t=" + new Date().getTime());
    });

    //监听提交
    layform.on('submit(registersave)', function(data) {
        data=data.field;
        This.jqueryAjax(Api.base.user.registerUserLogin, data, "json", function(data) {
            if (data.status == 1) {
                location.href = "/baseCompanyRegistered/registerResultHtml?KeyValue="+data.message;
            } else {
                layerMessageOk(data.message, {icon: 2});
            }
        });

    })
})

function changeImg() {
    $("#changeValidateImageListener").click();
}
